package edu.friday.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Entity
@Table(name = "sys_role_menu", schema = "friday")
@IdClass(SysRoleMenuEntityPK.class)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysRoleMenuEntity {
    @Id
    @Column(name = "role_id")
    private Long roleId;

    @Id
    @Column(name = "menu_id")
    private Long menuId;
}
